<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">

<#include "/common/pagerForm.html">
<style>
.searchBar.operation ul.searchContent li label {
                margin-left:15px;
                width:68px;
}

</style>

<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar operation" >
            <ul class="searchContent">
                <li ><label id="operationCode"><@label key="operationCode.C,colon">工序编号：</@label></label> <input type="text" class="textInput" name="operationCode" value="${condition.operationCode!''}" /></li>
                <li ><label id="operationText"><@label key="operationText.C,colon">工序描述：</@label></label> <input type="text" class="textInput" name="operationText" value="${condition.operationText!''}" /></li>
                <li ><label ><@label key="operationType.C,colon">工序类型：</@label></label>
                 <select name="operationTypeEcode" >
                     <option value="" ><@label key='all.C'>所有</@label></option>
                     <#if operationTypeECode??>
                         <#list operationTypeECode as ECode>
                             <option value="${ECode.eCode!''}"
                             <#if condition.operationTypeEcode??&&condition.operationTypeEcode==ECode.eCode>
                                 selected="selected"
                             </#if>
                             >${ECode.eCodeText!''}</option>
                         </#list>
                     </#if> 
                 </select>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="operation_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="480" height="300" href="${rc.getContextPath()}/manage/operation/addOperation?navTabId=${navTabId!''}" ref="addOperation" title="<@label key='addOperation.D'>新增工序</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="operation_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="580" height="360" href="${rc.getContextPath()}/manage/operation/modifyOperation?id={operation_code}&navTabId=${navTabId!''}" ref="editOperation"  title="<@label key='editOperation.D'>编辑工序</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="operation_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="580" height="360" href="${rc.getContextPath()}/manage/operation/viewOperation?id={operation_code}&navTabId=${navTabId!''}" ref="viewOperation" title="<@label key='viewOperation.D'>工序详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="operation_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/operation/deleteOperation?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelRes.M'>确认要删除选择的资源数据吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="100" orderField="operationCode"<#if (page.orderField?? && page.orderField == 'operationCode')>class="${page.orderDirection!''}"</#if>><@label key="operationCode.C">工序编号</@label></th>
                <th width="100" orderField="operationText"<#if (page.orderField?? && page.orderField == 'operationText')>class="${page.orderDirection!''}"</#if>><@label key="operationText.C">工序描述</@label></th>
                <th width="100" orderField="operationTypeEcode"<#if (page.orderField?? && page.orderField == 'operationTypeEcode')>class="${page.orderDirection!''}"</#if>><@label key="operationType.C">工序类型</@label></th>
                <th width="100" ><@label key="standardCapacity.C">标准产能</@label></th>
                <th width="100" ><@label key="standardHours.C">标准用时</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as operation>
            <tr target="operation_code" rel="${operation.operationCode!''}">
                <td><input name="ids" value="${operation.operationCode!''}" type="checkbox"></td>
                <td>${operation.operationCode!''}</td>
                <td>${operation.operationText!''}</td>
                <#if operationTypeECode??>
                     <#list operationTypeECode as ECode>
                             <#if ECode.eCode==operation.operationTypeEcode>
                            <td>${ECode.eCodeText!''}</td>
                            </#if>
                    </#list> 
                </#if>
                <td>${operation.standardCapacity!''}</td>
                <td>${operation.standardHours!''}</td>
                <td>${operation.createUser!''}</td>
                <td>${operation.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${operation.modifyUser!''}</td>
                <td>${operation.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
    
</div>